package com.vcredit.creditcat.persistence.base;

import com.vcredit.creditcat.model.Banner;
import com.vcredit.framework.pagination.DefaultCriteria;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BannerMapper {
	void insert(Banner obj);

	void update(Banner obj);

	List<Banner> findAll();

	List<Banner> find(Banner obj);

	Banner findById(Long id);

	List<Banner> findByPage(DefaultCriteria criteria);

	List<Banner> queryBannerByKind(@Param("bannerType")String bannerType, @Param("appDesc")String appDesc);
}
